package com.hexinfo.dmpro.sparing.service;

import cn.hutool.core.io.file.FileAppender;
import com.hexinfo.dmpro.sparing.dto.RuleToDistCPDTO;
import com.hexinfo.dmpro.sparing.dto.TableDistCPDTO;
import com.hexinfo.dmpro.sparing.model.HdfsHeatBackup;
import com.hexinfo.dmpro.sparing.model.HdfsPathAndSizedto;

import java.util.List;
import java.util.Map;

/**
 * 数据过滤类
 * 针对所有需要数据过滤
 * LS查询方法
 */
public interface DataFilterService {
    Map<String, List<HdfsHeatBackup>> dbTableNameSort(List<HdfsHeatBackup> hdfsHeatBackups);

    TableDistCPDTO getTableDistCPDTO(RuleToDistCPDTO ruleToDistCPDTO, List<HdfsHeatBackup> hdfsHeatBackups);

    TableDistCPDTO addLsFilter(TableDistCPDTO tableDistCPDTO,FileAppender heatlog,FileAppender tableLog);

    TableDistCPDTO allLsFilter(TableDistCPDTO tableDistCPDTO,FileAppender heatlog,FileAppender tableLog);

    String path(String sounName);

}
